package com.example.server4dubbo.controller;

import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/sv4")
@RefreshScope
public class Server4Contr {
    // Dubbo服务消费
    @DubboReference(check = false)
    com.dubbo.common.service.Server3Service dubboServices;

    @RequestMapping("/gotos3")
    public String goToPay() {
        return dubboServices.s3();
    }
}
